package org.fing.edu.uy.esbadp.core.entity;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

@XmlAccessorType(XmlAccessType.FIELD)
public class DMAdpRequirementsName implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@XmlElement(name="name")
	List<String> names;

	public DMAdpRequirementsName() {
		names = new LinkedList<String>();
	}

	public List<String> getNames() {
		return names;
	}

	public void setNames(List<String> names) {
		this.names = names;
	}

	public String toString() {
		
		StringBuilder sb = new StringBuilder();
		for (String aux : names) {
			sb.append("\t\t\tname:");
			sb.append(aux);
			sb.append("\n");
		}
		return sb.toString();
	}

}
